package com.itheima.weirpc.fault.retry;

import com.itheima.weirpc.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * ClassName: NoRetryStrategy
 * Package: com.itheima.weirpc.fault.retry
 * Description:
 *  不重试-重试策略
 * @Author 看到风
 * @Create 2024/12/13 16:01
 * @Version 1.0
 */
public class NoRetryStrategy implements RetryStrategy{
    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {
        return callable.call();
    }
}
